function onReachBottom(){
    var scrollHeight = $(document).height();
    var scrollTop = Math.ceil($(document).scrollTop());
    var availHeight = $(window).height();
    return (scrollHeight == scrollTop+availHeight)?true:false;
}